<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class AlertIdxToMybankBillRecordBindTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('mybank_bill_record_bind', function (Blueprint $table) {
            $table->index('billRecordId','idx_billRecordId');
            $table->index('vostroBillId','idx_vostroBillId');
            $table->index('batchNo','idx_batchNo');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('mybank_bill_record_bind', function (Blueprint $table) {
            $table->dropIndex("idx_billRecordId");
            $table->dropIndex("idx_vostroBillId");
            $table->dropIndex("idx_batchNo");
        });
    }
}
